package com.jay.example.IndoorPositioningSystem;

/****
 * https://gitee.com/unw1900/Indoor_Positioning_System
 */

/**
 * 记录所有 Beacon 信息
 *
 * 请在此更新Beacon设备的确切坐标
 *
 */
public class Beacon {

    private String[] name = new String[20];
    private int[] rssi = new int[20];
    float[][] Beacon_XY = new float[][]{    //Beacon设备X、Y坐标
            { 200, 200 },//OE Beacon-1
            { 300, 300},//OE Beacon-2
            { 400, 400},//3
            { 500, 500},//4
    };

    public float getBeacon_X(int BeaconNum) {
        return Beacon_XY[BeaconNum][0];
    }

    public float getBeacon_Y(int BeaconNum){
        return Beacon_XY[BeaconNum][1];
    }


    public void setBeacon_XY(float[][] beacon_XY) {
        Beacon_XY = beacon_XY;
    }

    String getName(int num) {
        return this.name[num];
    }

    public void setName(int num, String name) {
        this.name[num] = name;
    }

    public int getRssi(int num) {
        return this.rssi[num];
    }

    public void setRssi(int num, int beaconRssi) {
        this.rssi[num] = beaconRssi;
    }

}
